<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<!--   Core JS Files   -->
<%--
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
--%>
<script type="text/javascript" src="${ctxStatic }/jquery-plugs/jquery-3.2.1.min.js"></script>

<script src="${ctxStatic }/jquery-plugs/jquery-ui.min.js"></script>
<script src="${ctxStatic }/jquery-plugs/bootstrap.min.js"></script>
<script src="${ctxStatic }/js/material.min.js"></script>
<script src="${ctxStatic }/jquery-plugs/perfect-scrollbar.jquery.min.js"></script>

<!--  Charts Plugin -->
<script src="${ctxStatic }/jquery-plugs/chartist.min.js"></script>
<!--  Plugin for the Wizard -->
<script src="${ctxStatic }/jquery-plugs/jquery.bootstrap.wizard.js"></script>
<!--  Notifications Plugin    -->
<script src="${ctxStatic }/jquery-plugs/bootstrap-notify.js"></script>
<!--   Sharrre Library    -->
<script src="https://cdn.bootcss.com/Sharrre/1.3.5/js/jquery.sharrre.js"></script>

<%--
<!-- DateTimePicker Plugin -->
<!--  Plugin for Date Time Picker and Full Calendar Plugin-->
<script src="${ctxStatic }/jquery-plugs/moment.min.js"></script>
&lt;%&ndash;<script src="https://cdn.bootcss.com/bootstrap-datetimepicker/4.17.37/js/bootstrap-datetimepicker.min.js"></script>&ndash;%&gt;
<script type="text/javascript" src="${ctxStatic }/jquery-plugs/bootstrap-datetimepicker.js"></script>
<script src="${ctxStatic }/jquery-plugs/fullcalendar.min.js"></script>
--%>

<script src="${ctxStatic }/layer/layer.js"></script>
<script src="${ctxStatic }/layer/laydate/5.0.9/laydate.js"></script>


<!-- Sliders Plugin -->
<script src="${ctxStatic }/jquery-plugs/jquery.nouislider.min.js"></script>
<!--  Google Maps Plugin    -->
<%--<script src="${ctxStatic }/js/google.maps.js"></script>--%>
<!-- Select Plugin -->
<script src="${ctxStatic }/jquery-plugs/bootstrap-select.min.js"></script>

<!-- Sweet Alert 2 plugin -->
<script src="${ctxStatic }/jquery-plugs/sweetalert2.js"></script>
<script src="${ctxStatic }/jquery-plugs/jasny-bootstrap.min.js"></script>
<script src="${ctxStatic }/jquery-plugs/jquery.tagsinput.js"></script>
<script src="${ctxStatic }/jquery-plugs/jquery.clearsearch.js"></script>
<script src="${ctxStatic }/jquery-plugs/bootstrap-switch.js"></script>
<script src="${ctxStatic }/js/material-dashboard.js"></script>
<script src="${ctxStatic }/store/1.3.20/store.min.js"></script>
<script src="${ctxStatic }/js/commons.js"></script>
<script src="${ctxStatic }/js/commons-init.js"></script>
<script src="${ctxStatic }/js/dialogUtil.js"></script>
<script src="${ctxStatic }/js/demo.js"></script>
<script src="${ctxStatic }/js/debug.js"></script>


<script type="text/javascript">
    $().ready(function() {
        setTimeout(function() {
            systemNotice();
        }, 3000);
    });

    __hasSysNotice='${hasSysNotice}';
    log("__hasSysNotice:"+__hasSysNotice);
    function systemNotice(){
        if(__hasSysNotice){
            HttpUtil.ajaxAsyncJsonPost("/adminConsole/system/lastNotice", {}, function(data){
//                log(data);
                if(CommUtil.isNotEmpty(data)){
                    var key = "sys_notice_"+data.id;
                    if(!SessionUtil.has(key)){
                        NotifyUtil.showNotice("<h3>系统公告："+data.subject+"</h3><p>"+data.content+"</p>", 'warning', function(){
                            SessionUtil.set(key, true);
                        });
                    }
                }
            });
        }
    }
</script>

